package com.dimples.dd.system.convert;

import com.dimples.dd.common.pojo.PageResult;
import com.dimples.dd.system.model.entity.SystemDictTypeDO;
import com.dimples.dd.system.model.form.DictTypeForm;
import com.dimples.dd.system.model.vo.DictTypePageVO;
import org.mapstruct.Mapper;

/**
 * 字典对象转换器
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/7/22
 */
@Mapper(componentModel = "spring")
public interface DictTypeConverter {

    PageResult<DictTypePageVO> entity2Page(PageResult<SystemDictTypeDO> typePageResult);

    DictTypeForm entity2Form(SystemDictTypeDO dictTypeDO);

    SystemDictTypeDO form2Entity(DictTypeForm dictTypeForm);

}

